<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>地址管理首页</title>
    <meta http-equiv="Pragma" CONTENT="no-cache">
    <meta http-equiv="Cache-Control" CONTENT="no-store">
    <link rel="shortcut icon" type="image/x-icon" href="https://passport.damai.cn/images/favicon.ico" />
    <link rel="stylesheet" href="/zyx/css/public-min.css" th:href="@{/zyx/css/public-min.css}"/>

    <link rel="stylesheet" href="/zyx/css/m_new.css" th:href="@{/zyx/css/m_new.css}"/>
    <link rel="stylesheet" href="/zyx/css/customer.css" th:href="@{/zyx/css/customer.css}"/>
    <link rel="stylesheet" href="/zyx/css/ui-min.css" th:href="@{/zyx/css/ui-min.css}"/>
    <script type="text/javascript" src="/zyx/js/jquery-1.8.0.min.js" th:src="@{/zyx/js/jquery-1.8.0.min.js}"></script>
    <script src="/zyx/js/public-min.js" type="text/javascript" th:src="@{/zyx/js/public-min.js}"></script>
    <script type="text/javascript" src="/js/jquery-2.1.4.min.js"  th:src="@{/js/jquery-2.1.4.min.js}"></script>
    <script type="text/javascript" src="/js/vue.min.js"  th:src="@{/js/vue.min.js}"></script>
   <!-- <script type="text/javascript" src="/js/bootstrap-3.3.7-dist/js/bootstrap.min.js"  th:src="@{/js/bootstrap-3.3.7-dist/js/bootstrap.min.js}"></script>
    <link type="text/css" href="/js/bootstrap-3.3.7-dist/css/bootstrap.min.css"  rel="stylesheet" th:href="@{/js/bootstrap-3.3.7-dist/css/bootstrap.min.css}">-->
    <script type="text/javascript" src="/js/bootstrap-treeview/bootstrap-treeview.min.js" th:src="@{/js/bootstrap-treeview/bootstrap-treeview.min.js}"></script>
    <link type="text/css" href="/js/bootstrap-treeview/bootstrap-treeview.min.css" rel="stylesheet" th:href="@{/js/bootstrap-treeview/bootstrap-treeview.min.css}">
    <script type="text/javascript" src="/js/bootStrap-addTabs/bootstrap.addtabs.min.js" th:src="@{/js/bootStrap-addTabs/bootstrap.addtabs.min.js}"></script>
    <link type="text/css" href="/js/bootStrap-addTabs/bootstrap.addtabs.css" rel="stylesheet" th:href="@{/js/bootStrap-addTabs/bootstrap.addtabs.css}">
    <script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.js" th:src="@{/js/bootstrap-table/bootstrap-table.js}"></script>
    <link type="text/css"  href="/js/bootstrap-table/bootstrap-table.css" rel="stylesheet" th:href="@{/js/bootstrap-table/bootstrap-table.css}">
    <script type="text/javascript" src="/js/bootstrap-fileinput/js/fileinput.min.js" th:src="@{/js/bootstrap-fileinput/js/fileinput.min.js}"></script>
    <script type="text/javascript" src="/js/bootstrap-bootbox/bootbox.js"  th:src="@{/js/bootstrap-bootbox/bootbox.js}"></script>
    <script type="text/javascript" src="/js/bootstrap-fileinput/js/locales/zh.js" th:src="@{/js/bootstrap-fileinput/js/locales/zh.js}"></script>
    <link type="text/css" href="/js/bootstrap-fileinput/css/fileinput.min.css"  rel="stylesheet" th:href="@{/js/bootstrap-fileinput/css/fileinput.min.css}">
    <script type="text/javascript" src="/zyx/js/ui_v2.js" th:src="@{/zyx/js/ui_v2.js}"></script>


    <script type="text/javascript">
        var currNavName = "nav_myEwallet";
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-17883704-1']);
        _gaq.push(['_setDomainName', '.damai.cn']);
        _gaq.push(['_trackPageview']);
        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>

    <!-- PHPStat Start -->
    <script language="JavaScript">var _trackData = _trackData || [];</script>

    <noscript>
         <img src="/zyx/picture/10000001.php" alt="PHPStatAnalytics"/>
    </noscript>

    <script type="text/javascript">

        var _trackData = _trackData || [];

        _trackData.push(["addaction", "电子钱包-首页", "访问电子钱包-首页"]);
        $(function() {
            //$("#phpstat_js_id_10000001").src="https://tjat.damai.cn/phpstat/count/10000001/10000001.js";
            var head= document.getElementsByTagName('head')[0];
            var script= document.createElement('script');
            script.id="phpstat_js_id_10000001";
            script.charset="utf-8";
            script.type= 'text/javascript';
            //script.src= 'https://tjat.damai.cn/phpstat/count/10000001/10000001.js';
            head.appendChild(script);
        });
    </script>

    <!--/PHPStat End -->
    <script type="text/javascript" src="/zyx/js/address.js" th:src="@{/zyx/js/address.js}"></script>
    <script type="text/javascript" src="/zyx/js/pagination.js" th:src="@{/zyx/js/pagination.js}"></script>
    <script type="text/javascript" src="/zyx/js/utils.js" th:src="@{/zyx/js/utils.js}"></script>

    <script type="text/javascript" src="/zyx/js/baxiacommon.js" th:src="@{/zyx/js/baxiacommon.js}"></script>

    <style>
        .per-edit-list dl {margin:0 0 1px;}
        .btn05{*background-position:-245px -93px;}
        .btn04{*background-position:-146px 0;}
    </style>
    <link rel="stylesheet" href="/zyx/css/86db1153646d4afbbc5c1b3d005d5ad6.css" th:href="@{/zyx/css/86db1153646d4afbbc5c1b3d005d5ad6.css}" />
</head>

<body><script>
    with(document)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("exparams","category=&userid=&aplus&yunid=&ee164ed97f6ee&trid=2132a96916316108834178668e4997&asid=AQAAAAADaEBh+t4rIQAAAAD1jOvyWjwfGw==",id="tb-beacon-aplus",src=(location>"https"?"//g":"//g")+".alicdn.com/alilog/mlog/aplus_v2.js")
</script>


<!--ems start-->


<style>
    .sidebar .item:nth-last-child(2){
        /*display: none;*/
    }
    .dm-header-banner {
        width: 100%;
        height: 60px;
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url('/zyx/images/o1cn01uf9thn1de7txdinpy_!!6000000003760-2-tps-2880-120.png');
    }
</style>
<!--<div class="dm-header-banner"></div>-->
<div class="dm-header-wrap">
    <div class="dm-header-box" data-spm="top">
        <a href="/home"><img class="i-logo" src="/zyx/picture/tb1fbvffu3thkvjszsgxxx4qfxa-230-104.png" alt="大麦" /></a>
        <div class="location-header">
            <img class="i-icon-location" src="/zyx/picture/tb1xhduxngybunjy0fnxxx5lpxa-28-32.png" alt="定位" />
            <span class="city-location">全国</span>
            <img class="i-arrow-location" src="/zyx/picture/tb1vnubxstybenjsspaxxaoofxa-20-12.png" alt="箭头" />
            <div class="city-header-wrap">
                <div class="city-header" data-spm="city">
                    <div class="now-city">
                        <span class="title-city">当前城市:</span>
                        <span class="name-city select-city">全国</span>
                    </div>
                    <div class="hot-city">
                        <span class="title-city">热门城市:</span>
                        <div class="list-other"></div>
                    </div>
                    <div class="other-city">
                        <span class="title-city">其他城市:</span>
                        <div class="list-other"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="recommend-header">
            <a href="/home" class="type-recommend select" data-spm="dhome">首页</a>
            <a href="/search" class="type-recommend" data-spm="dcategory">分类</a>
        </div>
        <div class="right-header" data-spm="nick" style="padding-top: 0px">
            <div class="box-header user-header">
                <a href="javascript:void(0)" class="J_userinfo_img" data-spm="duserinfo"><img class="i-box-header i-user" src="/zyx/picture/tb14ukcgqywbunjy0fpxxassxxa-54-54.png" /></a>
                <a href="//passport.damai.cn/accountinfo/myinfo" class="J_userinfo_name" data-spm="duserinfo">
                    <div class="span-box-header name-user"></div>
                </a>
                <div class="login-user show">
                    <span class="span-box-header span-user" data-spm="dlogin" onclick="loginUser()">登录</span>
                </div>
                <div class="list-wrap">
                    <div class="list-login">
                        <a href="/myselfInfo" class="li-login select" data-spm="duserinfo">个人信息</a>
                        <a href="/lgf2" class="li-login" data-spm="daccountsetting">账号设置</a>
                        <a href="/orderList" class="li-login" data-spm="dordermanage">订单管理</a>
                        <a href="javascript:logout()" data-spm="dexit" class="li-login out-login">退出登录</a>
                    </div>
                </div>

            </div>
            <div class="box-header download-header">
                <img class="i-box-header i-download" src="/zyx/picture/tb1a9eigkusbunjy1xcxxcyjfxa-54-54.png" alt="下载" />
                <span class="span-box-header">下载</span>
                <div class="ewm-download">
                    <img class="i-ewm" src="wl/picture/TB1TBEJSkvoK1RjSZFNXXcxMVXa-280-280.png" />
                </div>
            </div>
        </div>
        <div class="search-header" data-spm="searchtxt">
            <img class="i-search" src="/zyx/picture/tb1qv3jxgmwbunjy1xaxxxcbxxa-34-36.png" alt="搜索" />
            <input class="input-search" placeholder="搜索明星、演出、体育赛事" data-spm="dsearchbtn" />
            <div class="btn-search" data-spm="dsearchbtn2">搜索</div>
            <div class="list-search-wrap">
                <div class="list-search">
                </div>
            </div>
        </div>

    </div>
</div>
<!--ems end-->

<div class="red-line"></div>
<!--main-->
<div class="main">
    <!--left of start-->
    <div class="sidenav">
        <div id="mydamai">
            <h3>我的大麦</h3>
            <dl>
                <dt>交易中心</dt>
                <dd><a id="nav_Order" href="/orderList" title="订单管理"  domain=""><span >订单管理</span></a></dd>

                <dd><a id="nav_myCoupon" href="/couponList" title="我的优惠券"  domain=""><span >我的优惠券</span></a></dd>



                <dl>
                    <!--
                    <dt>互动中心</dt>
                        <dd><a id="nav_MessCenter" href="http://my.damai.cn/interaction/siteMessage" title="站内消息"  domain=""><span >站内消息</span></a></dd>
                        <dd><a id="nav_MyComment" href="http://my.damai.cn/interaction/myComment" title="我的评论"  domain=""><span >我的评论</span></a></dd>
                        <dd><a id="nav_MyQuestion" href="http://my.damai.cn/interaction/myQuestion" title="我的提问"  domain=""><span >我的提问</span></a></dd></dl>
                    <dl>
                    -->
                    <dt>账户中心</dt>
                    <dd><a id="nav_MyAddress" href="/buy" title="收货地址"  domain=""><span >收货地址</span></a></dd>
                    <dd><a id="nav_AccountSafty" href="/lgf2" title="账号设置"  domain=""><span >账号设置</span></a></dd>

                    <dd><a id="nav_MyInfo" href="/myselfInfo" title="个人信息"  domain=""><span >个人信息</span></a></dd>

                </dl>

                <script type='text/javascript'>
                    (function(){
                        document.getElementById('mydamai').style.display='none';
                        var object=document.getElementById('nav_'+currNavName);
                        if(object) object.className+=' on';
                        document.getElementById('mydamai').style.display='';
                    })();
                </script>
        </div>
    </div>

    <!--left of end-->
    <!--right of start-->
    <div class="right-main">
        <div class="breadcrumb"> <span>地址管理</span></div>
        <input type="hidden" name="pageSize" id="pageSize" value="30"></input>
        <input type="hidden" name="status" id="status" value="status=STATUS_NORMAL,errorMessage=null|null"></input>
        <div class="m_add mb10 clear">
            </label>
            <label class="fr"><a href="#" onclick="creatnewAddress();" class="m_add_cj">创建新地址</a></label>
        </div>


            <table id="table"></table>

        <div class="item-s01 mb10 m_bj1 z-hide" id="creatNewAddress">
            <form id="myForm">
            <div class="content per-edit-list per-wd02 m_add_c">
                <dl>
                    <dt class="w80 tr fl"><span class="c4">*</span>收&nbsp;件&nbsp;人：</dt>
                    <dd class="fl"><input type="text" class="input-text" id="c_recipientName" name="recipients"></input>
                        <span id="c_recipientMsg" style="color:red"></span></dd>
                </dl>
                <dl>
                    <dt class="w80 tr fl"><span class="c4">*</span>手机：</dt>
                    <dd class="fl"><input type="text" class="input-text" id="c_mobile"  name="recipientsPhone"></input>
                        <select class='sel-4' id="c_nationPrefix">
                            <option value='86'>中国大陆 +86</option>
                            <option value='852'>中国香港 +852</option>
                            <option value='853'>中国澳门 +853</option>
                            <option value='886'>中国台湾 +886</option>
                        </select>
                        <span id="c_mobileMsg" style="color:red"></span></dd>
                </dl>
                <dl>
                    <dt><span class="c4">*</span>配送地址：</dt>
                    <dd>

                        <p class="mt15" style="height:40px;">
                            <input type="text" name="address" id="c_distributionDeatilInfo" class="input-text-1" style="width:400px;"></input><span class="per-txt">不需要重复填写省/市/区/街道</span>
                            <br>
                            <span id="c_peisongMsg1" style="color:red"></span>
                        </p>
                    </dd>
                </dl>
                <p class="per-all-t clear">
                   <input type="text" id="c_token" name="" value="" style="display:none">
                    <button id="saveCreate" onclick="add();" class="btn05 fl">保存地址</button>
                    <button id="cancleCreate" onclick="cancleCreate();" class="btn04 fl" style="margin:3px 0 0 20px;">取消</button>
                </p>
            </div>
            </form>
        </div>
        <div class="m_add_c" id="adressInfos">

        </div>
        <div id="detailPagination" class="pagination"></div>
    </div>
    <!--right of end-->
</div>



<!--操作确认-安全中心提示-->
<div class="pop-8 dm-layer-box din" id="test">
    <div class="dm-layer">
        <div class="hd">
            <h3><strong>操作确认</strong></h3>
            <a href="#" class="close"></a>
        </div>
        <div class="mydm-userinfo">
            <div class="useri-tb t-c">
                <p class="f14"><strong>确认删除吗？</strong></p>

                <input type="hidden" name="delNoUsedAddressId" id="delNoUsedAddressId"></input>
                <button class="btn01 mt20" type="submit"  onclick="sureDeleteAddress(1);">确定</button>
                <button class="btn04 ml20" name="aa">取消</button>
            </div>
        </div>
    </div>
</div>


<!--操作确认-安全中心提示2-->
<div class="pop-9 dm-layer-box din">
    <div class="dm-layer">
        <div class="hd">
            <h3><strong>操作确认</strong></h3>
            <a href="#" class="close"></a>
        </div>
        <div class="mydm-userinfo">
            <div class="useri-tb t-c">
                <p class="f14"><strong>确认删除已验证地址 <span id="delUsedAddressName"></span>？</strong></p>
                <input type="hidden" name="delUsedAddressId" id="delUsedAddressId"></input>
                <p class="mt10"><span class="m_c4 mr5">*</span>删除后重新添加该地址为“已验证”地址信息需要再次验证。</p>
                <button class="btn01 mt20" type="submit" onclick="sureDeleteAddress(2);">确定</button>
                <button class="btn04 ml20" name="aa">取消</button>
            </div>
        </div>
    </div>
</div>


<!--操作确认-失败原因-->
<div class="pop-10 dm-layer-box din" id="test">
    <div class="dm-layer">
        <div class="hd">
            <h3><strong>操作确认</strong></h3>
            <a href="#" class="close"></a>
        </div>
        <div class="mydm-userinfo">
            <div class="useri-tb t-c">
                <p class="f14"><strong>失败原因：首选地址不能删除！</strong></p>
                <p class="mt10"><span class="m_c4 mr5">*</span>您可以修改该地址，或设置其他地址为首选后再进行删除操作。</p>
                <button class="btn01 mt20" type="submit" name="bb">确定</button>
                <button class="btn04 ml20" name="bb">取消</button>
            </div>
        </div>
    </div>
</div>


<!--操作确认-默认首选地址-->
<div class="pop-6 dm-layer-box din">
    <div class="dm-layer">
        <div class="hd">
            <h3><strong>操作确认</strong></h3>
            <a href="#" class="close"></a>
        </div>
        <div class="mydm-userinfo">
            <div class="useri-tb t-c">
                <p class="f14"><strong>确认设为首选地址吗？</strong></p>
                <input type="hidden" name="preferredAddressId" id="preferredAddressId"></input>
                <p class="mt10"><span class="m_c4 mr5">*</span>下单时将默认使用“首选地址”作为收货地址。</p>
                <button class="btn01 mt20" onclick="SetupPreferred();">确定</button>
                <button class="btn04 ml20"  name="aa">取消</button>
            </div>
        </div>
    </div>
</div>

<!--ems start-->


<div class="dm-footer">
    <div class="w1200">
        <ul class="footer__links">

            <li class="footer__links__list"><a href="//help.damai.cn" target="_blank" data-spm="flink0">帮助中心</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=69&amp;categoryId=30" target="_blank" data-spm="flink1">公司介绍</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=70&amp;categoryId=30" target="_blank" data-spm="flink2">品牌识别</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=72&amp;categoryId=30" target="_blank" data-spm="flink3">公司大事记</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=40&amp;categoryId=14" target="_blank" data-spm="flink4">协议及隐私权政策</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;jubao.alibaba.com&#x2F;internet&#x2F;readme.htm?spm=a2o6e.search.0.0.72f44d15Votov6&amp;site=damai" target="_blank" data-spm="flink5">廉正举报</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=58&amp;categoryId=5" target="_blank" data-spm="flink6">联系合作</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;job.alibaba.com&#x2F;zhaopin&#x2F;positionList.htm?keyWord=JXU1OTI3JXU5RUE2&amp;_input_charset=UTF-8" target="_blank" data-spm="flink7">招聘信息</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;x.damai.cn&#x2F;markets&#x2F;special&#x2F;fangzhapian?spm=a2o6e.home.0.0.75df48d3hqGWGD&amp;wh_ttid=pc" target="_blank" data-spm="flink8">防骗秘籍</a></li>


        </ul>
        <div class="footer__ft">
            <div class="footer__ft_fl">
                <a href="//www.damai.cn/?spm=a2o6e.home.0.0.591b48d3QzpG8B" target="_blank" class="footer__ft__logo">
                    <img src="/zyx/picture/tb1otmasmzqk1rjszpxxxc4tvxa-167-60.png" />
                </a>
                <div class="footer__ft__code__box">
                    <img class="footer__ft__code" src="/zyx/picture/tb1tbejskvok1rjszfnxxcxmvxa-280-280.jpg" alt="">
                    <span>APP下载</span>
                </div>
            </div>
            <div class="footer__ft_fr">
                <div class="footer__fr__contact">

                    <a style="margin-left:0;" href="//online.damai.cn/alime/index?from=damai_pc_item&v=3" class="footer__fr__contact__btn alime">在线客服</a>
                </div>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN01J1OnUU1g76CE6kSh6_!!6000000004094-0-tps-2480-3507.jpg" target="_blank">京ICP证031057号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://beian.miit.gov.cn/#/Integrated/recordQuery" target="_blank">京ICP备11043884号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a
                            href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502037341" target="_blank">京公网安备11010502037341号</a>
                    </li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN0154oubE1iLsBEGmx9V_!!6000000004397-2-tps-1694-1138.png" target="_blank">广播电视节目制作经营许可证(京)字第02253号</a></li>
                </ul>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN01tlZwxM1LiYeoBTfIB_!!6000000001333-0-tps-2480-3507.jpg" target="_blank">网络文化经营许可证 京网文[2019]4082-420号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i1/O1CN01V4XPXw1TNxm6UL9RO_!!6000000002371-0-tps-1653-2339.jpg" target="_blank">营业性演出许可证京市演587号</a></li>
                </ul>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate">北京大麦文化传媒发展有限公司 版权所有</li>
                    <li class="footer__ft__certificate"><a
                            href="//www.damai.cn/?spm=a2o6e.home.0.0.591b48d3QzpG8B">大麦网</a></li>
                    <li>Copyright 2003-2020 All Rights Reserved</li>
                </ul>
                <ul class="footer__ft__words">
                    <li>举报投诉：damai_tousu@member.alibaba.com   浙江省杭州市余杭区文一西路969号</li>
                </ul>
                <ul class="footer__ft__words">
                    <li>违法不良信息举报电话：020-62108294</li>
                </ul>
                <div class="footer__ft__img">

                    <a rel="nofollow" title="电子营业执照" target="_blank"
                       href="https://gw.alicdn.com/tfs/TB1U0tdqmR26e4jSZFEXXbwuXXa-844-587.png">
                        <img class="footer__ft__img2" alt="" src="/zyx/picture/tb1zo80pyoybunjssd4xxbskfxa-141-41.png">
                    </a>

                    <a rel="nofollow" target="_blank" href="https://www.pcisecuritystandards.org/">
                        <img src="/zyx/picture/tb1y580pyoybunjssd4xxbskfxa-83-50.png" class="footer__ft__img3">
                    </a>
                    <a target="_blank" href="https://search.szfw.org/cert/l/CX20130327002367002885"
                       id="___szfw_logo___">
                        <img class="footer__ft__img4" src="/zyx/picture/tb1c4nnxtlybenjsszcxxbwhfxa-114-42.png">
                    </a>
                    <script type="text/javascript">(function () {
                        document.getElementById('___szfw_logo___').oncontextmenu = function () {
                            return false;
                        }
                    })();</script>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .sidebar{top: 72.5%;}
    .sidebar .item .icon {
        background-image: url(static/zyx/images/tb1u1u9xmzqk1rjszfhxxb3cpxa-64-180.png);
    }
    img{border: 0;}
    .sidebar .item .qrcode{
        background: #fff url('/zyx/images/tb1tbejskvok1rjszfnxxcxmvxa-280-280.jpg') no-repeat center center;
        background-size: 90%;
    }
    .sidebar .item .qrcode img{display:none;}
</style>
<script type="text/javascript" src="/zyx/js/45e4d8429e0d4484b64236d4074fbe85.js"  th:src="@{/zyx/js/45e4d8429e0d4484b64236d4074fbe85.js}"crossorigin></script>
<script type="text/javascript">

    var tracker = new window.Tracker({
        pid: 'damaipc',
        plugins: [
            [window.interfaceTrackerPlugin],
            [window.performanceTrackerPlugin]
        ],
    });

    // 启动 tracker 并监听全局 JS 异常
    tracker.install();

    (function(){var f=function(){};if(!window.console){window.console={log:f,info:f,warn:f,debug:f,error:f}}}());
</script>
<!--script src="//g.alicdn.com/sd/baxia/1.0.11/baxiaCommon.js"></script-->


<script src="~/zyx/js/mtop.js" th:src="@{~/zyx/js/mtop.js}"></script>
<script data-config="{combine:true}" src="/zyx/js/seed.js" th:src="@{/zyx/js/seed.js}"></script>
<script src="/zyx/js/index.js" th:src="@{/zyx/js/index.js}"></script>

<!--ems end-->

</body>
<script>
    //给登录添加on属性
    $(".user-header").on("mouseover",
        function (){
            $(".user-header").addClass("on");
        })
    $(".user-header").on("mouseout",
        function (){
            $(".user-header").removeClass("on");
        })

    //登录后显示登录信息
    $.ajax({
        url:"/home/getLoginInfo",
        success:function(data){
            if(data.loginInfo==300){
                $(".name-user").removeClass("show");
                $(".login-user").addClass("show");
                $(".out-login").removeClass("show");
            }else{
                $(".i-user").prop("src",data.loginInfo.userImg);
                $(".name-user").html(data.loginInfo.userName);
                $(".name-user").addClass("show");
                $(".login-user").removeClass("show");
                $(".out-login").addClass("show");
            }
        }
    })

    //给下载添加on属性
    $(".download-header").on("mouseover",
        function (){
            $(".download-header").addClass("on");
        })
    $(".download-header").on("mouseout",
        function (){
            $(".download-header").removeClass("on");
        })

    //跳转登录
    function loginUser(){
        location.href="/login";
    }
    //登录要修改js文件 span-user 的location.href

    //退出登录
    function logout(){
        $.ajax({
            url:"/home/logout",
            success:function(){
                //刷新页面
                location.reload();
            }
        })
    }

    $(function (){
        getAllAddressInfoData();
    })
    function getAllAddressInfoData(){

        $("#table").bootstrapTable({
            url:"../tree/findAddress",
            method : 'GET', //请求方式（*）
            toolbar:"#toolbar",
            columns:[
                {title:"收货人姓名",field:"recipients",width:100

                },
                {title:"收货人电话",field:"recipientsPhone",width:100

                },
                {title:"收货地址",field:"address",width:200,

                },
                {title:"操作",field:'s',
                    formatter:function(value,row,index){
                        str=' <a href="javascript:getAddress('+row.shippingaddressId+')" className="m_add_cj">修改</a> | ';
                        str+='<a href="javascript:delAddress('+row.shippingaddressId+')" >删除</a> ';
                        return str;
                    }},

            ],
        })
    }
    //新增收货地址
    function  add(){
        //alert(1111)
        $.ajax({
            url:"../tree/addAddress",
            data:$("#myForm").serialize(),
            type:"post",
            success:function(){
                $("#table").bootstrapTable("refresh");
            }
        })
    }
    //删除
    function delAddress(id){
        $.ajax({
            url:"../tree/delAddress",
            data: {id:id},
            type:"post",
            success:function(){
                $("#table").bootstrapTable("refresh");
            }
        })
    }

    //回显
    function  getAddress(id){
        //alert(89698)

        $("#creatNewAddress").show();
        $.ajax({
            url:"../tree/getAddress",
            data:{id:id},
            type:"post",
            success:function(data){
                for(var i in data){
                    //		console.log(i);
                    $("#myForm input").each(function(index,dom){
                        if (i==$(dom).attr("name")) {
                            $(dom).val(data[i])
                        }
                    })
                }

            }
        })

    }




</script>
</html>